#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    label=new QLabel("文本",this);
    label->setGeometry(0,0,200,100);
    qDebug()<<label->geometry();
}

Widget::~Widget()
{
    delete ui;
}

